package com.xbniao.owms.utils.barcode;
/***
  * @ClassName: BarCodePDFTemplate
  * @Description: 条码PDF模板类
  * @author zhouliwei@xbniao.com
  * @date 2015年9月10日 上午9:39:52
  *
  */
public class BarCodePDFTemplate {
   private String code;
   private String des;
   private float unitWidth;
   private float unitHeight;
   private int   row;
   private int   column;
   private float x;
   public BarCodePDFTemplate() { }
   
   public BarCodePDFTemplate(String code,int row, int column,String des) {
	super();
	this.row = row;
	this.column = column;
	this.code = code;
	this.des = des;
}

public BarCodePDFTemplate(String code, String des, float unitWidth,
		float unitHeight, int row, int column) {
	super();
	this.code = code;
	this.des = des;
	this.unitWidth = unitWidth;
	this.unitHeight = unitHeight;
	this.row = row;
	this.column = column;
   }
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	public float getUnitWidth() {
		return unitWidth;
	}
	public void setUnitWidth(float unitWidth) {
		this.unitWidth = unitWidth;
	}
	public float getUnitHeight() {
		return unitHeight;
	}
	public void setUnitHeight(float unitHeight) {
		this.unitHeight = unitHeight;
	}
	public int getRow() {
		return row;
	}
	public void setRow(int row) {
		this.row = row;
	}
	public int getColumn() {
		return column;
	}
	public void setColumn(int column) {
		this.column = column;
	}
	public float getX() {
		if(this.getColumn()==3)
			this.x = 1.3f;
		else if(this.getColumn() == 4)
			this.x = 1f;
		else if(this.getColumn() == 2)
			this.x = 1.5f;
		else if(this.getColumn() == 1)
			this.x = 0f;
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
  
}
